for i in (1, 2, 3):
    d = int(input('请输入第%i个数：'% i))
    if i == 1:
        a = d
    elif i == 2 and d < a:
        b = a
        a = d
    elif i == 2 :
        b = d
    elif i == 3 and d < b:
        c = b
        b = d
        if b <a:
            t = b
            b = a
            a = d
    elif i == 3 :
        c = d
print(a, b, c)









